package cn.seaboot.admin.file.bean;

import io.swagger.v3.oas.annotations.media.Schema;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * POJO
 * App信息表 [t_sys_app_info]
 * <p>
 *
 * @author Mr.css on 2018-6-20
 */
@Schema(description = "App信息表 [t_sys_app_info] 实体类")
public class AppInfo implements Serializable {
    private static final long serialVersionUID = 7202050212014606841L;

    /**
     * ID
     */
    @NotNull
    @Schema(description = "ID")
    private String id;
    /**
     * 应用名称
     */
    @Size(max = 64)
    @Schema(description = "应用名称")
    private String appName;
    /**
     * 版本号
     */
    @Size(max = 10)
    @Schema(description = "版本号")
    private String version;
    /**
     * 文件地址
     */
    @Size(max = 128)
    @Schema(description = "文件地址")
    private String appPath;
    /**
     * 简介
     */
    @Size(max = 255)
    @Schema(description = "简介")
    private String description;
    /**
     * APP产品主页
     */
    @Size(max = 128)
    @Schema(description = "APP产品主页")
    private String appPage;
    /**
     * 更新内容
     */
    @Size(max = 1024)
    @Schema(description = "更新内容")
    private String updateContent;
    /**
     * 文件类型
     */
    @Schema(description = "文件类型")
    private Integer appType;
    /**
     * 创建日期
     */
    @Schema(description = "创建日期")
    private LocalDateTime gmtCreate;
    /**
     * 更新日期
     */
    @Schema(description = "更新日期")
    private LocalDateTime gmtModified;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getAppPath() {
        return appPath;
    }

    public void setAppPath(String appPath) {
        this.appPath = appPath;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getAppPage() {
        return appPage;
    }

    public void setAppPage(String appPage) {
        this.appPage = appPage;
    }

    public String getUpdateContent() {
        return updateContent;
    }

    public void setUpdateContent(String updateContent) {
        this.updateContent = updateContent;
    }

    public Integer getAppType() {
        return appType;
    }

    public void setAppType(Integer appType) {
        this.appType = appType;
    }

    public LocalDateTime getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(LocalDateTime gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public LocalDateTime getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(LocalDateTime gmtModified) {
        this.gmtModified = gmtModified;
    }

    @Override
    public String toString() {
        return "AppInfo{" +
                "id='" + id + '\'' +
                ", appName='" + appName + '\'' +
                ", version='" + version + '\'' +
                ", appPath='" + appPath + '\'' +
                ", description='" + description + '\'' +
                ", appPage='" + appPage + '\'' +
                ", updateContent='" + updateContent + '\'' +
                ", appType=" + appType +
                ", gmtCreate=" + gmtCreate +
                ", gmtModified=" + gmtModified +
                '}';
    }
}
